package com.voxel.sense.infomsg.module.push;

import android.content.Intent;

import com.example.com.common.utils.L;
import com.umeng.message.UmengNotifyClickActivity;
import com.voxel.sense.infomsg.LaunchActivity;

import org.android.agoo.common.AgooConstants;

/**
 * Created by ChenYiYao on 2018/12/11.
 * des :
 */
public class MipushActivity extends UmengNotifyClickActivity {

    @Override
    public void onMessage(Intent intent) {
        super.onMessage(intent);
        String body = intent.getStringExtra(AgooConstants.MESSAGE_BODY);

        L.d("小米推送点击。。。。。。。。。。。。。。。。。。。" + body);
        runOnUiThread(new Runnable() {
            @Override
            public void run() {
                finish();
                MipushActivity.this.startActivity(new Intent(MipushActivity.this, LaunchActivity.class));
            }
        });

    }

}
